package com.qqbot.impl;

import com.alibaba.fastjson.JSONObject;
import com.qqbot.core.core.Bot;
import com.qqbot.core.core.BotFactory;
import com.qqbot.core.core.framework.BotInit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.qqbot.core.EnableBot;

import java.util.List;

/**
 * 启动类
 *
 * @author changwenpeng
 * @date 2022年5月9日
 */
@EnableBot
@EnableScheduling
@SpringBootApplication
public class AppRun {
    public static void main(String[] args) throws Exception {
        SpringApplication.run(AppRun.class, args);
//        List<Bot> list = BotFactory.getBots();
//        list.removeIf(filter->filter.getUserId().equals(Long.valueOf("2991516121")));
//        System.out.println(BotFactory.getBots().size());
//        Thread.sleep(3000);
//        System.out.println(BotFactory.getBots().size());
//        BotFactory.initBot("2991516121","ws://127.0.0.1:6700", null);
//        System.out.println(BotFactory.getBots().size());

        //BotFactory.initBot();
    }

}
